<script setup>
const msg = ref('');

const onSend = async () => {
  try {
    const { data } = await useGet('/ai/chat', { text: '今日金价' });
    msg.value = data;
  } catch (error) {
    console.log('error', error);
  }
};
</script>

<template>
  <div>{{ msg }}</div>
  <el-button @click="onSend">发送</el-button>
</template>

<style scoped></style>
